const app = getApp()
export default {
	props: {
		//显示类型
		type: {
			type: String,
			default: ''
		},
		title: {
			type: String,
			default: '提示'
		},
    imgSrc: {
      type: String,
			default: ''
    },
    // 图片宽高
    imgWidth: {
      type: String,
      default: '80rpx'
    },
    imgHeight: {
      type: String,
      default: '80rpx'
    },
		// 内容
		content: {
			type: String,
			default: ''
		},
		modalMargin: {
			type: String,
			default: '24'
		},
		heightPercent: {
			type: Number,
			default: 0.3
		},
    hideTitle: {
      type: Boolean,
      default: false
    },
    hideFooter: {
      type: Boolean,
      default: false
    },
    maskClick: {
      type: Boolean,
      default: true
    }
	},
	watch: {
	},
	data() {
		return {
      PRIMARY_TEXT_COLOR: app.globalData.PRIMARY_TEXT_COLOR,
    }
	},
	computed: {},
	methods: {
		toggleModal(isShow) {
			this.$refs.noticeModal.toggleModal(isShow)
		},
		handleTap() {
			this.$emit('onConfirm')
		},
    // 取消
    handleCancel() {
      this.toggleModal(false)
    }
	}
}